package com.gulimall.product.feign;

import com.gulimall.common.to.SkuHasStockVo;
import com.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Description:
 * @Author: Zk
 * @Date: 2020/11/30 20:12
 */
@FeignClient("gulimall-ware")
public interface WareFeignService {
    //查询是否有库存
    @PostMapping(value = "/ware/waresku/hasStock")
    public R getSkuHasStock(@RequestBody List<Long> skuIds) ;
}
